package com.kpf.springcloud.exception;

import com.kpf.springcloud.common.ResponseEnum;

/**
 * 单纯抛异常（不记日志）
 */
public class BusinessException extends BaseException {

    public BusinessException(ResponseEnum code, Object data) {
        super(code, data);
    }

    public BusinessException(int code, String msg) {
        super(code, msg);
    }

    public BusinessException(ResponseEnum code) {
        super(code.getCode(), code.getMessage());
    }
}
